from django.conf import settings
from django.core.mail import send_mail
from celery_tasks.main import app
from libs.yuntongxun.sms import CCP

@app.task(bind=True,name = "send_sms_code")
def send_verify_url(self,email,verify_url):

    send_mail(subject="请你点击验证，来自美多国际商城", message=verify_url, from_email=settings.EMAIL_FROM,
                  recipient_list=[email])